Added argument to drain that provides the list of packets that are drained#5362
Added argument to drain that provides the list of packets that are drained#5362bytenik wants to merge 3 commits intosocketio:mainfrom
Conversation
|
Hmm, shouldn't you go a bit deeper and catch the References:
Related: #5353 |
For Websockets, the ws library is handling that I think and it won't callback until its finished writing out. Do you see something different? You are possibly right about long-polling though; I can defer our drain until the HTTP drain. I just pushed out that change. Though does long-polling even support buffers? I was under the impression it was base64-ing them. I am not seeing a mechanism for uWebSockets to tell us when they have actually written out the buffer. |
|
Hi, just wanted to check in on this PR @darrachequesne; I can update it to eliminate the conflicts but I don't want to keep doing it if it won't merge soon. |
|
@darrachequesne Can I do anything to help get more engagement on this PR? Thanks! |
The kind of change this PR does introduce
Current behavior
'drain'event occurs with no argumentsNew behavior
'drain'event occurs with an argument containing the list of packets that were sent by the transportOther information (e.g. related issues)